{extend name="Public:base" /}
{block name="main"}
<!-- 路径导航 start -->
<ol class="breadcrumb">
  <li><i class="glyphicon glyphicon-home"></i>&nbsp;&nbsp;<a href="#">后台首页</a></li>
  <li class="active">后台管理中心</li>
</ol>
<!-- 路径导航 end -->
<div class="panel panel-default">
    <div class="panel-heading"> <i class="glyphicon glyphicon-pencil"></i> 编辑页</div>
    <div class="panel-body">
        <form class="form-horizontal" action="{:url()}" method="post">
        <input type="hidden" name="id" value="{$data.id|default=''}">
        <!-- 普通输入控件 start -->
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">标题</label>
            <div class="col-sm-3">
            <input name="title" type="text" class="form-control" id="inputEmail3" placeholder="标题" value="{$data.title|default=''}">
            </div>
        </div>
        <!-- 普通输入控件 end -->
        <!-- 文本域 start -->
        <div class="form-group">
            <label for="input2" class="col-sm-2 control-label">简介</label>
            <div class="col-sm-4">
                <textarea name="depict" id="input2" class="form-control" rows="3">{$data.depict|default=''}</textarea>
            </div>
        </div>
        <!-- 文本域 end -->
        <!-- 单选控件 start -->
        <div class="form-group">
            <label for="input4" class="col-sm-2 control-label">状态</label>
            <div class="col-sm-3">
                <label class="radio-inline">
                    <input type="radio" name="status" checked id="inlineRadio1" value="1"> 启用
                </label>
                <label class="radio-inline">
                    <input type="radio" name="status" id="inlineRadio2" value="-1"> 禁用
                </label>
            </div>
        </div>
        <!-- 单选控件 end -->
        <!-- 可视化编辑 start -->
        <div class="form-group">
            <label for="input8" class="col-sm-2 control-label">详情</label>
            <div class="col-sm-6">
                <script id="container" name="content" type="text/plain">{$data.content|default=''}</script>
            </div>
        </div>
        <!-- 可视化编辑 end -->
        <!-- 提交返回控件 start -->
        
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-6">
                <button type="submit" class="btn btn-success">确定</button>
                <a class="btn btn-default" href="#" role="button">返回</a>
            </div>
        </div>
        <!-- 提交返回控件 end -->
        </form>
    </div>
</div>
{/block}
{block name="javascript"}
<script src="__JS__/ueditor.config.js"></script>
<script src="__JS__/ueditor.all.min.js"></script>
<script>
$(function(){
    //编辑器
    var ue = UE.getEditor('container');
});
</script> 
{/block}
